package com.ctshk.rpc.order.season.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 套票旅客保险表
 * </p>
 *
 * @author 杨林
 * @since 2021-03-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_season_order_insurance")
@ApiModel(value = "SeasonOrderInsurance对象", description = "套票旅客保险表")
public class SeasonOrderInsurance extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "保险id")
    private Long insuranceId;

    @ApiModelProperty(value = "计划编码")
    private String rationType;

    @ApiModelProperty(value = "保险名称")
    private String insuranceName;

    @ApiModelProperty(value = "保险开始日期")
    private LocalDateTime insuranceStartDate;

    @ApiModelProperty(value = "保险结束日期")
    private LocalDateTime insuranceEndDate;

    @ApiModelProperty(value = "保险单号")
    private String insuranceNumber;

    @ApiModelProperty(value = "保险价格")
    private BigDecimal insurancePrice;

    @ApiModelProperty(value = "投保人")
    private Long policyHolderId;

    @ApiModelProperty(value = "投保人名称")
    private String policyHolderName;

    @ApiModelProperty(value = "被保旅客Id,多个用逗号分隔")
    private String insuredPerson;
    //枚举InsuranceType
    @ApiModelProperty(value = "保险类型(機票8,火車票9,船票10,巴士票11)")
    private Integer insuranceType;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
